<table class="table">
	<thead>
		<tr>
			<th width="60" class="text-center">ID</th>
			<th>时间</th>
			<th>订单类型</th>
			<th>客户名称</th>
			<th>域名</th>
			<th class="text-center">备案</th>
			<th class="text-center">尾款</th>
			<th>金额</th>
			<th>网站进度</th>
			<th>评论</th>
			<th class="text-right">操作</th>
		</tr>
	</thead>
	@foreach ($orders as $value)
		<tr>
			<td class="text-center">{{ $value->id }}</td>
			<td>{{ $value->created_at->format('Y-m-d H:i') }}</td>
			<td>
				<span class="label label-info">{{ $system['type_item'][$value->type][$value->type_item] }}</span>
			</td>
			<td>
			<span class="label label-info order-year" title="年限">{{ $value->year }}</span>
			{{ $value->customer->name }}
			@if ($value->expedited)
				<span class="label label-warning">加急</span>
			@endif
			</td>
			<td>
			<a href="{{ $value->domain }}" target="_blank">
				{{ str_replace ('http://', '', $value->domain) }}
			</a>
			</td>
			<td class="text-center">
				<?php
					$statusClass = [1=>'default', 2=>'info', 3=>'success', 4=>'danger'];
				?>
				<span class="label label-{{ $statusClass[$value->icp_status] }}">{{ $system['icp_status'][$value->icp_status] }}</span> 
			</td>
			<td class="text-center">
				@if ($value->tail_amount > 0) <span class="label label-warning">尾款</span> @endif
			</td>
			<td><span class="text-warning">￥{{ $value->amount }}</span></td>
			<td><span class="text-success">{{ $system['progress'][$value->progress] }}</span></td>
			<td><span class="label label-warning">{{ $value->replies->count() }}</span></td>
			<td class="text-right">
				<div class="toolbar">
					<a href="{{ route('admin.order.show', $value->id) }}" class="btn-link">详情</a>
					<span class="text-explode ">|</span>
					<a href="{{ route('admin.order.edit', $value->id) }}" class="btn-link">修改</a>
					<span class="text-explode ">|</span>
					<a href="javascript:void(0);" data-id="{{ $value->id }}" class="btn-link delete-item">删除</a>
				</div>
			</td>
		</tr>
	@endforeach
</table>